package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_activity")
public class ShopActivity extends Model<ShopActivity> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 活动名称
     */
	private String name;
	@TableField("tactic_key")
	private Integer tacticKey;
	@TableField("tactic_object")
	private String tacticObject;
	private Date ctime;
	private Date mtime;
	private String description;
	private Boolean repeated;
    /**
     *  策略状态 0未启用 1已启用 2已结束
     */
	private Integer status;
    /**
     * 优先级
     */
	private Integer priority;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getTacticKey() {
		return tacticKey;
	}

	public void setTacticKey(Integer tacticKey) {
		this.tacticKey = tacticKey;
	}

	public String getTacticObject() {
		return tacticObject;
	}

	public void setTacticObject(String tacticObject) {
		this.tacticObject = tacticObject;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getRepeated() {
		return repeated;
	}

	public void setRepeated(Boolean repeated) {
		this.repeated = repeated;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopActivity{" +
			"id=" + id +
			", name=" + name +
			", tacticKey=" + tacticKey +
			", tacticObject=" + tacticObject +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", description=" + description +
			", repeated=" + repeated +
			", status=" + status +
			", priority=" + priority +
			"}";
	}
}
